<?php

/**
 * empleados form base class.
 *
 * @package    gescell
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfPropelFormGeneratedTemplate.php 16976 2009-04-04 12:47:44Z fabien $
 */
class BaseempleadosForm extends BaseFormPropel
{
  public function setup()
  {
    $this->setWidgets(array(
      'sf_guard_user'        => new sfWidgetFormPropelChoice(array('model' => 'sfGuardUser', 'add_empty' => false)),
      'nombre'               => new sfWidgetFormInput(),
      'apellido'             => new sfWidgetFormInput(),
      'documento'            => new sfWidgetFormInput(),
      'direccion'            => new sfWidgetFormInput(),
      'ciudad'               => new sfWidgetFormInput(),
      'telefonoparticular'   => new sfWidgetFormInput(),
      'telefonocasa'         => new sfWidgetFormInput(),
      'correo1'              => new sfWidgetFormInput(),
      'correo2'              => new sfWidgetFormInput(),
      'informacionadicional' => new sfWidgetFormInput(),
      'created_at'           => new sfWidgetFormDateTime(),
      'updated_at'           => new sfWidgetFormDateTime(),
      'id'                   => new sfWidgetFormInputHidden(),
    ));

    $this->setValidators(array(
      'sf_guard_user'        => new sfValidatorPropelChoice(array('model' => 'sfGuardUser', 'column' => 'id')),
      'nombre'               => new sfValidatorString(array('max_length' => 50, 'required' => false)),
      'apellido'             => new sfValidatorString(array('max_length' => 50, 'required' => false)),
      'documento'            => new sfValidatorString(array('max_length' => 15, 'required' => false)),
      'direccion'            => new sfValidatorString(array('max_length' => 50, 'required' => false)),
      'ciudad'               => new sfValidatorString(array('max_length' => 50, 'required' => false)),
      'telefonoparticular'   => new sfValidatorString(array('max_length' => 50, 'required' => false)),
      'telefonocasa'         => new sfValidatorString(array('max_length' => 50, 'required' => false)),
      'correo1'              => new sfValidatorString(array('max_length' => 50, 'required' => false)),
      'correo2'              => new sfValidatorString(array('max_length' => 50, 'required' => false)),
      'informacionadicional' => new sfValidatorString(array('max_length' => 100, 'required' => false)),
      'created_at'           => new sfValidatorDateTime(array('required' => false)),
      'updated_at'           => new sfValidatorDateTime(array('required' => false)),
      'id'                   => new sfValidatorPropelChoice(array('model' => 'empleados', 'column' => 'id', 'required' => false)),
    ));

    $this->widgetSchema->setNameFormat('empleados[%s]');

    $this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);

    parent::setup();
  }

  public function getModelName()
  {
    return 'empleados';
  }


}
